<ui-panel>
    <div class="container-release-form">
        <div class="container-release-header">
            <div class="release-header-desc">自定义配置</div>
        </div>
        <div class="container-release-content">
            <label>namespace.yaml</label>
            <span class="label-tooltip" uib-tooltip-template="'tooltipTemplate'" tooltip-placement="left"
                  tooltip-class="tooltip-table"><i class="fa fa-question"></i></span>
            <ctg-code-mirror ng-model="vm.editor0" mode="text/x-yaml" style="height:300px;"></ctg-code-mirror>
        </div>
        <div class="container-release-content">
            <label>quota.yaml</label>
            <span class="label-tooltip" uib-tooltip-template="'tooltipTemplate'" tooltip-placement="left"
                  tooltip-class="tooltip-table"><i class="fa fa-question"></i></span>
            <ctg-code-mirror ng-model="vm.editor1" mode="text/x-yaml" style="height:300px;"></ctg-code-mirror>
        </div>
        <div class="container-release-content">
            <label>limits.yaml</label>
            <span class="label-tooltip" uib-tooltip-template="'tooltipTemplate'" tooltip-placement="left"
                  tooltip-class="tooltip-table"><i class="fa fa-question"></i></span>
            <ctg-code-mirror ng-model="vm.editor2" mode="text/x-yaml" style="height:300px;"></ctg-code-mirror>
        </div>
    </div>
</ui-panel>
<div class="panel-form-footer">
    <a ui-sref="create.basemsg" ng-if="::!vm._fData.app.id" class="btn btn-default btn-sm">上一步</a>
    <!--<a ui-sref="app-service-version-publish.deploy" ng-if="::vm._fData.app.id" class="btn btn-default btn-sm">上一步</a>-->
    <button type="button" ng-disabled="vm.loading" ng-click="vm.release()" class="btn btn-primary btn-sm pull-right">
        <i ng-show="vm.loading" class="fa fa-cog fa-lg fa-spin margin-right-5"/>{{vm.action}}</button>
</div>

<script type="text/ng-template" id="tooltipTemplate">
    <span class="table-title">Yaml 常用属性</span>
    <table class="table table-bordered">
        <tbody>
        <tr>
            <td>metadata</td>
            <td>元数据</td>
        </tr>
        <tr>
            <td><span class="margin-left-10">.name</span></td>
            <td>RC名称</td>
        </tr>
        <tr>
            <td><span class="margin-left-10">.namespace</span></td>
            <td>命名空间</td>
        </tr>
        <tr>
            <td><span class="margin-left-10">.labels[]</span></td>
            <td>自定义标签属性列表</td>
        </tr>
        <tr>
            <td>spec</td>
            <td>详细描述</td>
        </tr>
        <tr>
            <td><span class="margin-left-10">.replicas</span></td>
            <td>Pod 副本数量</td>
        </tr>
        <tr>
            <td><span class="margin-left-10">.selector[]</span></td>
            <td>指定具有Label 标签的Pod 作为管理范围</td>
        </tr>
        <tr>
            <td><span class="margin-left-10">.template</span></td>
            <td>容器的定义</td>
        </tr>
        </tbody>
    </table>
</script>